/*
 *  $Id: RagimaTheAir.cs 1067 2010-05-21 11:00:43Z thenn.erannor $
 *	This file is a part of Ragima CCG.
 *	(C) 2008 Ragima development group.
 *
 *	Licensed under the terms of the GNU GPL License version 2.
 *
 */

namespace Ragima.Cards001.Air.Creatures {
    public class RagimaTheAir: RagimaCreatureCard {
        public RagimaTheAir() : base("001_a_c_r_the_air", ElementType.Air) {
            Level = CompleteLevel.ReadyForTest;
            Value = 100;
        }
        public override void SetNaturalAffects(ICollector<Affect> affects) {
            affects.Add<Affects.Flight>();
            affects.Add<Affects.FlightBlock>();
            affects.Add(new Affects.MultiBlock(3));
            affects.Add<Affects.Spirit>();
            affects.Add<RagimaTheAirAura>();
        }

        private class RagimaTheAirAura: Affects.FlightAura {
            public RagimaTheAirAura(): base(false, true) {}

            public override string Id {
                get { return AffectManager.GetCardId<RagimaTheAir>("aura"); }
            }

            protected override Affect CreateSubAffect() {
                return new RagimaTheAirAffect();
            }
        }

        private class RagimaTheAirAffect: SpellAffect<RagimaTheAir> {
            public RagimaTheAirAffect(): base(true) {
                DefaultDescription = true;
                Add(new Affects.ModDamage(-1));
                Add(new Affects.ModMaxHealth(-2));
            }

            public override string Id {
                get { return AffectManager.GetCardId<RagimaTheAir>("aura"); }
            }
        }
    }
}
